Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle env vars in a case-preserving, case-insensitive manner on Windows #574

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

niik
Copy link
Member

@niik niik commented Jun 5, 2024

This is a follow-up to #570 and attempts to tackle Windows environment variable shenanigans for all environment variables and not just PATH. The main change is the introduction of EnvMap, a class that behaves as a case-insensitive, case-preserving map on Windows and a regular case-sensitive map on other platforms. This class is used in lib/git-environment.ts to handle environment variables in a consistent manner across platforms.

I've also bumped Prettier to 3.3.1 so it can handle my syntax and specified the version of TypeScript used by Visual Studio Code in .vscode/settings.json because I was building this on an old VM with an old VS code and noticed that it wouldn't complete properly.

@niik niik requested review from sergiou87 and tidy-dev June 5, 2024 12:12
@tidy-dev
Copy link
Contributor

tidy-dev commented Jun 6, 2024

@niik Just making sure you were aware of the failing tests (I have been putting off reviewing till those are happy)

@niik
Copy link
Member Author

niik commented Jun 7, 2024

Just making sure you were aware of the failing tests (I have been putting off reviewing till those are happy)

I was not aware, thanks for the heads up!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants